package com.leaf.spring.y201906.day14.observer.java;

/**
 * 模拟观察者模式 java.util
 * 
 * @Title:
 * @Description:
 * @Author: leaf
 * @Since:2019年6月14日
 * @Version:1.1.0
 */
public class TestEvent {

	public static void main(String[] args) {

		Movie movie = new Movie();

		movie.addObserver(new Zhangsan());
		movie.addObserver(new Lisi());
		
		movie.play();

	}

}
